<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>


</head>

<body>
    <div id="app">
        <!-- 频繁的显示和隐藏 v-show -->
        <div v-show="isShow">{{msg}}</div>


    </div>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        const { ref, reactive, watch, createApp, toRefs } = Vue;
        createApp({
            setup() {
                const msg = ref('hello world')
                const isShow = ref(true)
                const score = ref(100)

                return {
                    msg,
                    isShow,
                    score
                }
            }

        }).mount('#app')
    </script>
</body>

</html>